From 0e338d31a422fe001e06f9bb1e2831f1297249ea Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 19 Dec 2017 21:18:41 +0000 Subject: [PATCH] =?utf8?q?Range:=20Fix=20inverted=20vert=20scrolling=20on?= =?utf8?q?=20vert=20Ranges=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The change in the previous patch should only be applied when the Range is oriented horizontally. https://bugzilla.gnome.org/show_bug.cgi?id=737175 --- gtk/gtkrange.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 16e78f16d3..cadece27ed 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -3059,8 +3059,9 @@ _gtk_range_get_wheel_delta (GtkRange *range, } else if (gdk_event_get_scroll_direction ((GdkEvent *) event, &direction)) { - if (direction == GDK_SCROLL_DOWN || - direction == GDK_SCROLL_LEFT) + if (direction == GDK_SCROLL_LEFT || + (priv->orientation == GTK_ORIENTATION_VERTICAL && direction == GDK_SCROLL_UP) || + (priv->orientation == GTK_ORIENTATION_HORIZONTAL && direction == GDK_SCROLL_DOWN)) delta = - scroll_unit; else delta = scroll_unit; -- 2.30.2